from urllib.request import urlopen

if __name__ == '__main__':
    url = "https://www.scct.cn/"

    response = urlopen(url=url)

    # 获取响应状态码
    print(response.getcode())

    # 读取网页内容，并进行解码
    content = response.read().decode("utf-8")
    print(content)

    # 将网页内容保存到文件
    with open(file="scct.html", mode="w", encoding="utf-8") as f:
        f.write(content)
